package com.llyb.tingshu.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.llyb.tingshu.model.order.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.llyb.tingshu.vo.order.OrderInfoVo;
import com.llyb.tingshu.vo.order.TradeVo;

public interface OrderInfoService extends IService<OrderInfo> {


    OrderInfoVo trade(TradeVo tradeVo, Long userId);

    String submitOrder(OrderInfoVo orderInfoVo, Long userId);

    OrderInfo getOrderInfoByOrderNo(String orderNo);

    IPage<OrderInfo> findUserPage(Page<OrderInfo> pageOrderList, Long userId, String orderStatus);

    /**
     * 订单取消
     * @param orderId
     */
    void orderCancel(String orderId);

    void orderPaySuccess(String orderNo);
}
